﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="historyconvertgiftByStores.aspx.cs" Inherits="historyconvertgiftByStores" EnableViewState="false" %>
<!DOCTYPE html>
<html>
<head>
    <title>门店兑换记录</title>
</head>
<body>
    <div>
        <section data-role="page" id="historyconvertgiftByStores_main">
            <div id="historyconvertgiftByStores_content">
                    <div style="text-align:center;font-size:12px;display:none;" runat="server" id="msg"><img src="images/history-integration.png" style="position:relative;top:8px;"/><span id="msgText">暂无兑换信息</span></div>
                    <asp:Repeater runat="server" ID="rptHistoryconvertgiftByStores">
                        <ItemTemplate>
                            <!--开始-->
                            <div class="item">
                            <!--left-->
                                <div class="item-left">
                                    <div class="left-left">
                                        <span><%#Convert.ToDateTime(Eval("ApplicationTime")).ToString("yyyy-MM-dd")%></span>
                                        <span><%#Convert.ToDateTime(Eval("ApplicationTime")).ToString("HH:mm")%></span>
                                    </div>
                                    <div class="left-right">
                                        <span></span>
                                        <div></div>
                                    </div>
                                </div>
            
                                <!--right-->
                                <div class="item-right">
                                    <div class="right-main">
                                        <div class="sjx sjx-bottom"></div>
                                        <div class="sjx sjx-top"></div>
                                        <span>单号<span style="color:red;margin-left:10px;"><%#Eval("ExchangeAccount")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                         <span>兑换数量<span style="color:red;margin-left:10px;"><%#Eval("ExchangeAllNumber")%>个</span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>使用积分<span style="color:red;margin-left:10px;"><%#Eval("ExchangeAllPoint")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>兑换平台<span style="color:red;margin-left:10px;"><%#Eval("ExchangeType").ToString()=="1"?"主系统":"自助平台"%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>状态<span style="color:red;margin-left:10px;"><%#Convert.ToInt32(Eval("ExchangeStatus")) == 1 ? "申请中..." : Convert.ToInt32(Eval("ExchangeStatus")) == 2 ? "已通过系统审核" : "未通过系统审核"%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <a href="#historyconvertgiftByStoresDetail" data-load="historyconvertgiftByStoresDetail.aspx?giftlist=<%#Eval("ExchangeID") %>&type=lookinventory"  data-role="button" data-inline="true" data-mini="true">详情</a>
                                    </div>
                                </div>
                            </div>
                            <!--结束-->
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

            <script type="text/javascript">
                $(function () {
                    setTimeout("setHeight()", 1000);
                })

                function setHeight() {
                    $(".item-right").each(function (index, element) {
                        var h = $(this).height() + 10 + index * 5;
                        $(".left-right span").eq(index).height(h);
                        var offset = index * -5;
                        if (index != 0) {
                            $(".left-right span").eq(index).css({ "position": "relative", "top": offset + "px" });
                        }
                    });
                }
            </script>
               <footer data-role="footer" data-position="fixed" id="historyconvertgiftByStores_footer">
                <div data-role="navbar" id="nav-glyphish-example">
                    <ul>
                        <li><a href="#index" id="A1"><img src="images/business_site_btn.png" /><br/>商家网站</a></li>
                        <li><a href="#goodlist" id="A2" data-load="goodlist.aspx"><img src="images/Goods_Book_btn.png" /><br/>商品购买</a></li>
                        <li class="footer_active"><a href="#membershipcard" data-load="membershipcard.aspx" id="A3"><img src="images/03.png" /><br/>会员卡</a></li>
                        <li><a href="#giftlist" data-load="giftlist.aspx" id="A4" class="ui-btn-active"><img src="images/exchange_btn.png" /><br/>积分兑换</a></li>
                    </ul>
                </div>
            </footer>
        </section>
    </div>
</body>
</html>
